/**
 * @author Mauro
 */
$(document).ready(function(){
	$('textarea').ckeditor(ckEditorConfiguration);
	$(".data").attr('autocomplete','off').datetime();
	$("#tabs").tabs();
    $(".button").button();
});

function showMask() {
	var maskHeight = $(document).height();
	var maskWidth = $(window).width();
	
	$('#mask').css({
		'width': maskWidth,
		'height': maskHeight
	});
	
	$('#mask').fadeIn(1000);
	$('#mask').fadeTo('slow',0.8);
	
	return true;
}

function hideMask() { $('#mask').hide(); }

var formOptions = {
	beforeSubmit: showMask,
	success: hideMask
}

var ckEditorConfiguration = {
    toolbar: 'Basic',
    uiColor: '#A2E200',
    width: 600,
    height: 200
}
